#!/usr/bin/python

class Zviera(object):
  def __init__(self):
    self.num_heads = 1
    self.num_tail = None
    self.num_legs = None
    self.fur_color = None
    self.name = None
    self.sound = None
  def Describe(self):
    return ('my name is: %s , I have %r head, %r tails, %r legs, '
      'my fur color is: %s.' %(self.name, self.num_heads, self.num_tail,
      self.num_legs, self.fur_color))
  def MakeSound(self):
    return 'vydavam zvuk: %s' %self.sound


#vytvorit funkciu MakeSound

class Macka(Zviera):
  def __init__(self, fur_color, name, sound):
    super(Macka, self).__init__()
    self.num_tail = 1
    self.num_legs = 4
    self.fur_color = fur_color
    self.name = name
    self.sound = sound
  def Spi(self):
    return 'Spim...'
# vytvoris spustitelnu funkciu Spi()ktora ti vrati string'kua spim ne?'

class Pes(Zviera):
  def __init__(self, fur_color, name, sound):
    super(Pes, self).__init__()
    self.num_tail = 1
    self.num_legs = 4
    self.fur_color = fur_color
    self.name = name
    self.sound = sound
  def Dones(self):
    return 'paci sa'

def main():
  ##zviera_obj je instancia class Zviera
  #zviera_obj = Zviera()
  #zviera_obj.Describe()
  #print zviera_obj.Describe()
  
  #vytvaram instanciu macka
  #macka_obj je premenna ktora ukazuje na miesto v pamati
  #kde sa vytvori instancia typu/class Macka
  macka_obj = Macka('biela','Flafy', 'dig mnau')
  pes_obj = Pes('hnedy','Baron','haf')
  print macka_obj.Describe() 
  print macka_obj.MakeSound()
  print macka_obj.Spi()
  print pes_obj.Describe()
  print pes_obj.MakeSound()
  print pes_obj.Dones()
if __name__ == '__main__':
  main()
            
